import Vue from "vue";
import VueRouter from "vue-router";
import CustomIframe from "@/components/CustomIframe.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "about",
    meta: { title: "关于", icon: "el-icon-menu" },
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
  {
    path: "/iframe/:url",
    name: "iframe",
    meta: { hiddenMenu: true },
    component: CustomIframe,
  },
];

export default routes;
